package com.scsystem.xysc.service;

import com.scsystem.xysc.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.scsystem.xysc.pojo.vo.ReturnResult;

/**
* @author sky
* @description 针对表【comment】的数据库操作Service
* @createDate 2023-09-16 15:56:45
*/
public interface CommentService extends IService<Comment> {

    /**
     * 发表评论
     * @param uid 用户id
     * @param pid 商品id
     * @param content 评论内容
     * @param rating 评分
     * @return 发表结果
     */
    ReturnResult<Boolean> addComment(Long uid, Long pid, String content, Integer rating);
}
